<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login page</title>
</head>
<body>
<center>
<h1>Java Learning center</h1>
<h2>Account Login</h2>
<h:outputText value="#{userBean.ERRMSG}" style="color:red;font-size:13"/>
<h:form>
<h:panelGrid id="loginPanel" columns="3">

<h:outputText value="Username"/>
<h:inputText id="uname" value="#{userBean.username}" required="true"/>
<h:message for="uname" style="color:red;font-size:13"/>

<h:outputText value="Password"/>
<h:inputSecret id="pword" value="#{userBean.password}" required="true"/>
<h:message for="pword" style="color:red;font-size:13"/>

<h:commandButton value="Login Now" action="#{userBean.verifyUser}"/>

</h:panelGrid>
</h:form>
</center>
</body>
</html>
</f:view>